import React from 'react'

// Component
import Overview from './components/Overview'
import Benchmarking from './components/Benchmarking'

export default class ThreeList extends React.Component {
  state = {
    overviewSelected: 'shaoxing',
    benchmarkingSelected: 'project',
  }

  /**
   * 获取选中的数据
   */
  handleSelect = (version, selected) => {
    if (version === 'overview') {
      this.setState({
        overviewSelected: selected,
      })
    } else if (version === 'benchmarking') {
      this.setState({
        benchmarkingSelected: selected,
      })
    }
  }

  render() {
    return (
      <div>
        <Overview data={this.props} />
        <Benchmarking />
      </div>
    )
  }
}
